package com.wiserun.develop.project.service;

import com.wiserun.develop.project.mapper.ProjectMapper;
import com.wiserun.develop.project.model.Project;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectService {

    @Autowired
    private ProjectMapper projectMapper;


    public List<Project> queryList(Project project){
        List<Project> projects = projectMapper.queryList(project);
        return projects;
    }

    public int add(Project record){
        int add = projectMapper.add(record);
        return add;

    };

    public int update(Project project){
        int update = projectMapper.update(project);
        return update;
    };

    public int delete(Integer id){
        int delete = projectMapper.delete(id);
        return delete;
    };
}
